//
// Messages Modal 
//

#messages-chatroom-ps {
  height: calc(100% - 247px);
}

.modal-message {
  width: 45vw;
  max-width: 750px;
  min-width: 425px;
  .modal-header {
    height: 65px;
    padding: 0.75rem 1rem;
    align-items: center;
    .before {
      display: flex;
      align-items: center;
      margin: 0;
      padding: 6px;
      margin-left: -0.25rem;
      opacity: 0.5;
      i {
        font-size: 20px;
        font-weight: bold;
      }
    }
    .close {
      margin: 0;
      padding: 6px;
      margin-right: -0.25rem;
    }
  }

  .modal-message-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 80vh;
    min-height: 450px;
    .listview-message {
      .list-item .item-link {
        position: relative;
        border-bottom: 1px solid $border-color;
        cursor: pointer;
        .avatar {
          width: 3rem;
          height: 3rem;
          top: $spacer;
        }
        p {
          margin: 0;
        }
        .time {
          position: absolute;
          top: $spacer;
          right: $spacer;
          font-size: 12px;
          padding: 0;
        }
        .badge {
          position: absolute;
          bottom: $spacer;
          right: $spacer;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 20px;
          height: 20px;
          border-radius: 50%;
        }
      }
    }
    .list-new-message {
      margin-left: -$spacer;
      margin-right: -$spacer;
    }
  }
  .modal-message-user-title {
    display: inline-block;
    font-size: $font-size-base * 1.25;
    font-weight: bold;
    color: inherit;
    @include hover-focus {
      color: inherit;
    }
  }
  .modal-message-input-content {
    display: flex;
    align-items: center;
    width: 100%;
    padding: $spacer;
  }
}

//
// Message Notice
//

.message-notice {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  color: $white;
  background-color: $gray-500;
  box-shadow: 0 2px 4px rgba($black, 0.2);
  transition: height 0.15s ease-in-out;
  .message-notice-content {
    padding: $spacer;
  }
  .message-notice-title {
    text-align: center;
    margin-bottom: 0.75*$spacer;
  }
  .message-notice-footer {
    display: flex;
    justify-content: center;
  }
  &.active {
    display: block;
    height: auto;
  }
}
